package com.mashibing.servicedriveruser.remote;

import org.mashibing.dto.ResponseResult;
import org.mashibing.response.TerminalResponse;
import org.mashibing.response.TrackResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author:
 * @create: 2024/7/2 15:39
 * @description:
 */
@FeignClient("service-map")
public interface ServiceMapClient {

    @PostMapping( "/terminal/add")
    ResponseResult<TerminalResponse> addTerminal(@RequestParam String name, @RequestParam String desc);

    @PostMapping(value = "/track/add")
    ResponseResult<TrackResponse> addTrack(@RequestParam String tid);
}
